<template>
  <el-dialog :title="dialogTitle" :visible.sync="dialogVisible" width="500px">
    <el-form :model="form" label-width="120px">
      <el-form-item label="电表编号" prop="sn">
        <el-input v-model="form.sn"/>
      </el-form-item>
      <el-form-item label="租户名称" prop="tenantName">
        <el-input v-model="form.tenantName"/>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click="onSubmit">确定</el-button>
        <el-button @click="dialogVisible=false">取消</el-button>
      </el-form-item>
    </el-form>
  </el-dialog>
</template>

<script>
// import {transferElectricMeter} from "@/api/zufang/electricMeter";
export  default {
    data(){
        return{
            dialogTitle:'',
            dialogVisible:false,
            form:{
                sn: '',
                tenantName: '',
            },
            electricNumber:'0'
        }
    },
    methods:{
        open(){
            this.dialogVisible = true
            this.dialogTitle = '转移电表'
        },
       async onSubmit(){
            // await transferElectricMeter(this.form)
            this.$message.success('转移成功')
            this.dialogVisible = false
            // 发送操作成功的事件
            this.$emit('success')
        }
    }
}


</script>

<style scoped>

</style>
